TANK_RATE (<FROM tank ID>, <TO tank ID>)
TANK_RATE (TankA, TankB)
<FROM Tank>
The name or location index number of the FROM tank (value should be 0 if there is no FROM tank).
<TO Tank>
The name or location index number of the TO tank (this value should be 0 if there is no TO tank).
TankA fills with 10,000 gallons at a rate of 60 gpm until it reaches a level of 9,700 gallons. Then it fills at a rate of 30 gpm. To model this change of rate, define the following logic in the Tank_Rate subroutine:
IF Tank_ToID=TankA THEN
{
IF Tank_Level[TankA]<9700 THEN
RETURN 60
ELSE
RETURN 30
}
Now when you fill TankA, enter the following:
Tank_Fill(TankA, 10000, 0, 0)
The first 0 in the expression above causes the logic defined in the Tank_Rate subroutine to execute and determine the flow rate.
See Also
![]() |
© 2012 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com |